/**
 * Created by hama on 2016/11/8.
 */
var express = require('express');
var app = express();
var route = require('./routes/index');
app.use('/',route);
//设置静态目录
app.use(express.static('public'));
//设置模板的存放目录
app.set('views','./views');
//设置模板引擎为jade/ejs/artTemplate/....
app.set('view engine','ejs');
app.listen(3000,function(){
    console.log('node is OK');
})

